﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="InvoicePrint.aspx.cs" Inherits="InvoicePrint" Async="true"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>打印发货单</title>
</head>
<body style="background-color: #ffffff">
    <form id="form1" runat="server">
    <div>
		<table width="100%" border="0" cellpadding="2" cellspacing="0">
            <tr>
                <td height="10" valign="middle" colspan="4" align="center">
                <asp:Label ID="lblInfo" runat="server" ForeColor="red"></asp:Label>
                </td>
            </tr>
			<tr>
				<td width="3%" height="59" valign="middle"><strong><br>
					</strong>
				</td>
				<td width="40%" valign="middle"><strong>发货单<br>
					</strong>
				</td>
				<td width="10%" valign="middle" align="center"><a style="CURSOR: hand"><strong><div id="pt" onclick="window.print()">打印</div>
						</strong></a>
				</td>
				<td width="47%" align="right" valign="bottom" class="p9black"></td>
			</tr>
		</table>
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td>&nbsp;</td>
			</tr>
		</table>
		<table width="100%" border="0" cellpadding="2" cellspacing="0" class="p12white">
			<tr>
				<td><hr size="1" noshade/>
				</td>
			</tr>
		</table>
		<table width="100%" border="0" cellspacing="0" cellpadding="4" class="p9black" bgcolor="#f7f7f7">
			<tr>
				<td width="18%" align="right" nowrap>发货单号：</td>
				<td width="27%" nowrap><FONT face="宋体">
						<span id="lbConsignNum">
                            <asp:Label ID="lblInvoiceID" runat="server"></asp:Label></span></FONT></td>
				<td width="16%" align="right" nowrap>订单号：</td>
				<td width="39%" nowrap><FONT face="宋体">
						<span id="lbOFID">
                            <asp:Label ID="lblOrderInfoID" runat="server" Text=""></asp:Label></span></FONT></td>
			</tr>
			<tr>
				<td width="18%" align="right" nowrap>
                    操作员：<!--操作员：--></td>
				<td width="27%" nowrap><FONT face="宋体">
						<span id="lbConsignOperator">
                            <asp:Label ID="lblStoreKeeperName" runat="server" Text=""></asp:Label></span></FONT></td>
				<td width="16%" align="right" nowrap>发货时间：<!--发货时间：--></td>
				<td width="39%" nowrap><FONT face="宋体">
						<span id="lbConsignTime">
                            <asp:Label ID="lblConsignmentTime" runat="server" Text=""></asp:Label></span></FONT></td>
			</tr>
			<tr>
				<td width="18%" align="right" valign="top" nowrap>收货人：<!--收货人：--></td>
				<td width="27%" nowrap>
					<span id="lbConsignInUserName">
                        <asp:Label ID="lblShipName" runat="server" Text=""></asp:Label></span></td>
				<td width="16%" align="right" valign="top" nowrap>收货人电话：<!--收货人电话：--></td>
				<td width="39%" nowrap>
					<span id="lbConsignInTel">
                        <asp:Label ID="lblPhone" runat="server" Text=""></asp:Label></span></td>
			</tr>
			<tr>
				<td width="18%" align="right" valign="top" nowrap>收货地址：<!--收货地址：--></td>
				<td width="27%" nowrap colspan="3">
					<span id="lbConsignInAddress">
                        <asp:Label ID="lblShipAddress" runat="server" Text=""></asp:Label></span></td>
			</tr>
			<tr>
				<td width="18%" align="right" valign="top" nowrap>邮政编码：<!--邮政编码：--></td>
				<td width="27%" nowrap>
					<span id="lbConsignInPostCode">
                        <asp:Label ID="lblShipZip" runat="server" Text=""></asp:Label></span></td>
				<td width="16%" align="right" valign="top" nowrap><!--收货人Email：-->
                    配送方式：</td>
				<td width="39%" nowrap><FONT face="宋体">
						<span id="lbConsignInEmail">
                            <asp:Label ID="lblShipMethod" runat="server"></asp:Label></span></FONT></td>
			</tr>
		</table>
		<table width="100%" border="0" cellpadding="2" cellspacing="0" class="p12white">
			<tr>
				<td><hr size="1" noshade/>
				</td>
			</tr>
		</table>
    
    </div>
        <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; text-align: center">
            <tr>
                <td style="width: 100%">
                    <asp:GridView ID="gdvOrderItem" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                        BorderColor="WhiteSmoke" BorderStyle="Solid" BorderWidth="1px" CellPadding="4"
                        Font-Names="宋体" Font-Size="12px" ForeColor="Black" Height="149px" SkinID="GridView2"
                        Width="967px">
                        <Columns>
                            <asp:HyperLinkField DataTextField="ProductID" HeaderText="商品编号" NavigateUrl="http://localhost:2843/JXMSTC.SmartBusiness.ShoppingWeb/ProductInfo.aspx" DataNavigateUrlFields="ProductID" DataNavigateUrlFormatString="http://localhost:2843/JXMSTC.SmartBusiness.ShoppingWeb/ProductInfo.aspx?ProductID={0}" />
                            <asp:BoundField DataField="Name" HeaderText="商品名称" />
                            <asp:BoundField DataField="Name" HeaderText="小类别名" />
                            <asp:TemplateField HeaderText="数量及单位">
                                <ItemTemplate>
                                    <asp:Label ID="lblNmmber" runat="server" Style="position: static" Text='<%# string.Format("{0}",Eval("Quantity"))%>'></asp:Label>
                                    <asp:Label ID="lblUnit" runat="server" Style="position: static" Text='<%# string.Format("{0}",Eval("Unit"))%>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="单价">
                                <ItemTemplate>
                                    ￥<asp:Label ID="lblUnitPrice" runat="server" Style="position: static" Text='<%#string.Format("{0}",Eval("UnitPrice"))%>'></asp:Label>&nbsp;
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="单项总价">
                                <ItemTemplate>
                                    ￥<asp:Label ID="lblSumPrice" runat="server" Style="position: static" Text='<%#string.Format("{0}",(Convert.ToInt32(Eval("Quantity"))*Convert.ToInt32(Eval("UnitPrice"))).ToString())%>'></asp:Label>&nbsp;
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td style="width: 100%">
                    数量总计：<asp:Label ID="lblQuantity" runat="server"></asp:Label>件 商品总金额：<asp:Label
                        ID="lblTotalPrice" runat="server"></asp:Label>元</td>
            </tr>
        </table>
    </form>
</body>
</html>
